package org.springframework.yoyo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainRun {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);
		Person p = context.getBean(Person.class);
		System.out.println(p.getName());
		System.out.println(p);
	}
}